<template>
    <div class="tabs">
        <div class="box">
            <div class="boxLeftBorder"></div>
            <div class="title font_OPPOSans">
                {{title}}
                <div class="borderLeft"></div>
                <div class="borderTop"></div>
                <div class="borderBottom"></div>
            </div>
            <div class="btnBox">
                <slot name="btn"></slot>
            </div>
        </div>
        <slot/>
    </div>
</template>

<script>
    export default {
        name: "Tabs",
        props:{
            title:""
        },
    }
</script>

<style scoped>
    .tabs{
        font-size: 1.1rem;
        position: relative;
    }
    .boxLeftBorder{
        position: absolute;
        width: 0.4375rem;
        left: 1px;
        top: 1px;
        bottom: 1px;
        z-index: 5;
        background: #A6945A;
    }
    .box{
        display: flex;
        justify-content:space-between;
        align-items:center;
    }
    .title{
        line-height: 1.25rem;
        padding: 0.625rem 0.625rem 0.625rem 1.375rem;
        flex: 1;
        font-size: 1.1rem;
        background: linear-gradient(90deg, rgba(106, 112, 124, 0.4) 0%, rgba(106, 112, 124, 4e-05) 70%, rgba(106, 112, 124, 4e-05) 100%);
        position: relative;
    }

    .borderLeft{
        position: absolute;
        width: 1px;
        left: 0;
        top: 0;
        bottom: 0;
        background: rgba(217,231 ,255,0.5);
    }
    .borderTop{
        position: absolute;
        height: 1px;
        left: 0;
        top: 0;
        right: 0;
        background: linear-gradient(to right,rgba(217,231 ,255,0.5),rgba(217,231,255,0))
    }

    .borderBottom{
        position: absolute;
        height: 1px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right,rgba(217,231 ,255,0.5),rgba(217,231,255,0))
    }
</style>